package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoArtDepartments;
import com.muyu.danmo.mapper.DanmoArtDepartmentsMapper;
import com.muyu.danmo.service.IDanmoArtDepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 院系设置Service业务层处理
 * 
 * @author yangle
 * @date 2025-05-30
 */
@Service
public class DanmoArtDepartmentsServiceImpl implements IDanmoArtDepartmentsService
{
    @Autowired
    private DanmoArtDepartmentsMapper danmoArtDepartmentsMapper;

    /**
     * 查询院系设置
     * 
     * @param id 院系设置主键
     * @return 院系设置
     */
    @Override
    public DanmoArtDepartments selectDanmoArtDepartmentsById(Long id)
    {
        return danmoArtDepartmentsMapper.selectDanmoArtDepartmentsById(id);
    }

    /**
     * 查询院系设置列表
     * 
     * @param danmoArtDepartments 院系设置
     * @return 院系设置
     */
    @Override
    public List<DanmoArtDepartments> selectDanmoArtDepartmentsList(DanmoArtDepartments danmoArtDepartments)
    {
        return danmoArtDepartmentsMapper.selectDanmoArtDepartmentsList(danmoArtDepartments);
    }

    /**
     * 新增院系设置
     * 
     * @param danmoArtDepartments 院系设置
     * @return 结果
     */
    @Override
    public int insertDanmoArtDepartments(DanmoArtDepartments danmoArtDepartments)
    {
        return danmoArtDepartmentsMapper.insertDanmoArtDepartments(danmoArtDepartments);
    }

    /**
     * 修改院系设置
     * 
     * @param danmoArtDepartments 院系设置
     * @return 结果
     */
    @Override
    public int updateDanmoArtDepartments(DanmoArtDepartments danmoArtDepartments)
    {
        return danmoArtDepartmentsMapper.updateDanmoArtDepartments(danmoArtDepartments);
    }

    /**
     * 批量删除院系设置
     * 
     * @param ids 需要删除的院系设置主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtDepartmentsByIds(Long[] ids)
    {
        return danmoArtDepartmentsMapper.deleteDanmoArtDepartmentsByIds(ids);
    }

    /**
     * 删除院系设置信息
     * 
     * @param id 院系设置主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtDepartmentsById(Long id)
    {
        return danmoArtDepartmentsMapper.deleteDanmoArtDepartmentsById(id);
    }
}
